package com.gitee.gen.constant;

/**
 * 代码生成通用常量
 *
 * @author autumn
 */
public class GenConstants
{
    /** 单表（增删改查） */
    public static final String TPL_CRUD = "crud";

    /** 树表（增删改查） */
    public static final String TPL_TREE = "tree";

    /**
     * 新建单独对话框
     */
    public static final String TPL_CREATE_ALONE_DIALOG = "createAloneDialog";

    public static final String TPL_EDIT_PAGE = "editPage";

    /** 树编码字段 */
    public static final String TREE_CODE = "treeCode";

    /** 树父编码字段 */
    public static final String TREE_PARENT_CODE = "treeParentCode";

    /** 树名称字段 */
    public static final String TREE_NAME = "treeName";

    /** 上级菜单ID字段 */
    public static final String PARENT_MENU_ID = "parentMenuId";

    /** 上级菜单名称字段 */
    public static final String PARENT_MENU_NAME = "parentMenuName";

    /** 数据库字符串类型 */
    public static final String[] COLUMNTYPE_STR = { "char", "varchar", "nvarchar", "varchar2", "tinytext", "text","blob",
            "mediumtext", "longtext" };

    /** 数据库时间类型 */
    public static final String[] COLUMNTYPE_TIME = { "datetime", "time", "date", "timestamp" };

    /** 数据库数字类型 */
    public static final String[] COLUMNTYPE_NUMBER = { "tinyint", "smallint", "mediumint", "int", "number", "integer",
            "bit", "bigint", "float", "double", "decimal" ,"bigint unsigned" , "int unsigned", "number unsigned", "integer unsigned"};

    /** 数据库数字类型 */
    public static final String[] COLUMNTYPE_TO_JAVA_INTEGER_NUMBER = { "tinyint",  "int", "number", "integer" };

    /** 页面不需要编辑字段 */
    public static final String[] COLUMNNAME_NOT_EDIT = { "id", "create_by", "create_time", "del_flag" ,"create_user_id","update_user_id"
            ,"id", "createBy", "createTime", "delFlag" ,"createUserId","updateUserId"
    };

    /** 页面不需要显示的列表字段 */
    public static final String[] COLUMNNAME_NOT_LIST = { "id", "create_by", "create_time", "del_flag", "update_by",
            "update_time","create_user_id","update_user_id"
            , "id", "createBy", "createTime", "delFlag", "updateBy",
            "updateTime","createUserId","updateUserId"
    };

    /** 页面不需要查询字段 */
    public static final String[] COLUMNNAME_NOT_QUERY = { "id", "create_by", "create_time", "del_flag", "update_by",
            "update_time", "remark" ,"create_user_id","update_user_id"
            ,"id", "createBy", "createTime", "delFlag", "updateBy",
            "updateTime", "remark" ,"createUserId","updateUserId"
    };



//,"delFlag","cacheFlag"
    /** Entity基类字段 */
    public static final String[] BASE_ENTITY = { "createBy", "createTime", "updateBy", "updateTime", "remark","createUserId","updateUserId"};

    /** Tree基类字段 */
    public static final String[] TREE_ENTITY = { "parentName", "parentId", "orderNum", "ancestors", "children" };

    /** 文本框 */
    public static final String HTML_INPUT = "input";

    /** 文本域 */
    public static final String HTML_TEXTAREA = "textarea";

    /** 下拉框 */
    public static final String HTML_SELECT = "select";

    /** 单选框 */
    public static final String HTML_RADIO = "radio";

    /** 复选框 */
    public static final String HTML_CHECKBOX = "checkbox";

    /** 日期控件 */
    public static final String HTML_DATETIME = "datetime";

    /** 上传控件 */
    public static final String HTML_UPLOAD_IMAGE = "uploadImage";

    /** 富文本控件 */
    public static final String HTML_EDITOR = "editor";

    /** 整数 */
    public static final String HTML_INPUT_INTEGER = "inputInteger";

    /** 浮点型数字 */
    public static final String HTML_INPUT_FLOAT = "inputFloat";

    /** 字符串类型 */
    public static final String TYPE_STRING = "String";

    /** 整型 */
    public static final String TYPE_INTEGER = "Integer";

    /** 长整型 */
    public static final String TYPE_LONG = "Long";

    /** 浮点型 */
    public static final String TYPE_DOUBLE = "Double";

    /** 高精度计算类型 */
    public static final String TYPE_BIGDECIMAL = "BigDecimal";

    /** 时间类型 */
    public static final String TYPE_DATE = "Date";

    /** 模糊查询 */
    public static final String QUERY_LIKE = "LIKE";


    /** 精确查询 */
    public static final String QUERY_EQ = "EQ";

    /** 需要 */
    public static final String REQUIRE = "1";

    public static final String UNREQUIRE = "0";

    /** 页面不需要新建字段 */
    public static final String[] COLUMNNAME_NOT_ADD = { "sort","id", "create_user_id","create_by", "create_time", "del_flag","update_user_id", "update_time", "update_by"
            ,"process_status","status","bit_flag","bit_status","content","rowstamp","lock_rowstamp"
            , "sort","id", "createUserId","createBy", "createTime", "delFlag","updateUserId", "updateTime", "updateBy"
            ,"processStatus","status","bitFlag","bitStatus","content","rowstamp","lockRowstamp"
    };

}
